/**
 * 
 */
package com.cqcis.uip.utils.client;

/**
 * @author huangmy
 * @date 2008-2-22
 */
public class UipAddress {
	private String address; //IP 地址
	private int port;   // 端口
	private String path;  // 要发送的文件路径
	
	private boolean pakcage; // 是否需要打包
	private boolean weakPackage; //只增加包头包尾, 主要针对现有CRM系统遗留包
	private boolean dirPath; // 路径为目录
	private boolean dirPathFile; // 路径为目录且目录内为xml文件
	private boolean multiThread; // 多线程发送
	private String checkStr;
	
	public boolean isPakcage() {
		return pakcage;
	}

	public void setPakcage(boolean pakcage) {
		this.pakcage = pakcage;
	}

	@Override
	public String toString() {			
		return "{数据信息: address=" + address + ", port=" + port 
		       + ", path=" + path + ", pakcage=" + pakcage
		       + ", weakPackage=" + weakPackage + ", dirPath=" + dirPath
		       + ", dirPathFile=" + dirPathFile + ", multiThread=" + multiThread
		       + ", checkStr=" + checkStr
		       + "}";
	}
	
	public UipAddress(String address, int port, String path) {
		this.address = address;
		this.port = port;
		this.path = path;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public boolean isWeakPackage() {
		return weakPackage;
	}

	public void setWeakPackage(boolean weakPackage) {
		this.weakPackage = weakPackage;
	}

	public boolean isDirPath() {
		return dirPath;
	}

	public void setDirPath(boolean dirPath) {
		this.dirPath = dirPath;
	}

	public boolean isDirPathFile() {
		return dirPathFile;
	}

	public void setDirPathFile(boolean dirPathFile) {
		this.dirPathFile = dirPathFile;
	}

	public boolean isMultiThread() {
		return multiThread;
	}

	public void setMultiThread(boolean multiThread) {
		this.multiThread = multiThread;
	}

	public String getCheckStr() {
		return checkStr;
	}

	public void setCheckStr(String checkStr) {
		this.checkStr = checkStr;
	}
}
